package com.zx.emaster;

import com.zzp.basepresenter.util.Bean;
import com.zzp.basepresenter.util.TextUtils;

public class TripBean extends Bean {

    private String name;//地名
    private int level;//风险等级
    private String time;//时间

    public String getNameWithColor() {
        switch (level) {
            case 1:
                return returnType(TextUtils.getInstance().wrapperColor("#65AB6F", name));
            case 2:
                return returnType(TextUtils.getInstance().wrapperBoldColor("#FF962F", name));
            case 3:
                return returnType(TextUtils.getInstance().wrapperBoldColor("#FF3011", name));
        }
        return returnType(TextUtils.getInstance().wrapperColor("#65AB6F", name));
    }

    public String getName() {
        return returnType(name);
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }
}
